use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let words: Vec<&str> = input_str.split(',').collect();
    let mut set: HashSet<&str> = HashSet::new();
    for word in words.iter() {
        set.insert(*word);
    }
    set.len()
}
